package net.mikoo.seals.biz.service;

import java.util.List;

import net.mikoo.seals.model.Company;
import net.mikoo.seals.model.CompanyQuery;

public interface CompanyService {

	Company getDetail(Long companyId);
	
	Company getInfoByQuery(CompanyQuery query);

	void modify(Company company);

	/**
	 * 变更管理员
	 * @param companyId
	 * @param toPartyId
	 */
	void transferAdmin(Long companyId, Long fromPartyId,Long toPartyId);
	
	List<Company> getListByPartyId(Long partyId);

	/**
	 * 查询拥有的公司
	 * @param query
	 * @return
	 */
	Company getSelectedByQuery(CompanyQuery query);
}
